package com.teamone.etl.accountant.feign;

import com.teamone.etl.enterprise.entity.Enterprise;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author ZhaoPeiJie
 * @Date 2021/1/22 12:27
 * @Version 1.0
 */
@FeignClient(value = "enterprise")
public interface EnterpriseFeign {

    /**
     * 关联公司Id  获取对象
     * @param id    主键
     * @return      公司数据
     */
    @GetMapping("/enterprise/getById")
    Enterprise getById(@RequestParam("id") Integer id);
}
